Fix transaction EAGAIN handling in xenstore client programs.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 18 Oct 2005 01:08:26 +0000 (02:08 +0100)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 18 Oct 2005 01:08:26 +0000 (02:08 +0100)
commit006b46b2d010366415749591af35dd2900e6e6a0
tree76ededf4512b971c3624144a0e257db8592b918b
parentfe453929d395355f1bd2a63a350fa8b22212bdec
Fix transaction EAGAIN handling in xenstore client programs.
Redirect all output to a buffer and only print the buffer once the
transaction succeeds, discarding output from previous attempts.
In particular, fixes failures when the (block) backend driver would
not configure because reads from the hotplug script did get double
output when a transaction had to be redone.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstore/xenstore_client.c